package cn.ym.mall.entity;

import java.io.Serializable;

/**
 * 权限类
 */
public class Rights implements Serializable {
    private Integer rigid;   //权限编号
    private String rigname; //权限名

    public Rights(){

    }

    public Rights(String rigname) {
        this.rigname = rigname;
    }

    public Rights(Integer rigid, String rigname) {
        this.rigid = rigid;
        this.rigname = rigname;
    }

    public Integer getRigid() {
        return rigid;
    }

    public void setRigid(Integer rigid) {
        this.rigid = rigid;
    }

    public String getRigname() {
        return rigname;
    }

    public void setRigname(String rigname) {
        this.rigname = rigname;
    }

    @Override
    public String toString() {
        return "Rights{" +
                "rigid='" + rigid + '\'' +
                ", rigname='" + rigname + '\'' +
                '}';
    }
}
